Skip to main content

Utilising sdks

// require the SDKconst SDK = require("pioneer-javascript-sdk");// if the actual address has a path, include that in the getServerAddress() methodconst scoutAddress = "http://localhost:3030";// the sdkKey that should match the sdkKey provided by Compassconst sdkKey = "JazzyElksRule";// makes an active sse connectionconst config = await new SDK(scoutAddress, sdkKey).connect().withWaitForData();const sdkClient = config.client;// gets the feature valueconsole.log(sdkClient.getFeature("LOGIN_MICROSERVICE"));